package control.module.vo.usermanage;

import com.fasterxml.jackson.annotation.JsonFormat;
import control.module.po.usermanage.User;

import java.util.Date;
import java.util.List;

/**
 * User auth vo
 *
 * @description:
 * @author: cyj
 * @date 2020 -10-26 08:50:27
 */
public class UserAuthVo extends User {

    /**
     * Roles
     */
    private List<RoleAuthsVo> roles;

    /**
     * Create date
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="Asia/Shanghai")
    private Date createDate;

    /**
     * Update date
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="Asia/Shanghai")
    private Date updateDate;

    /**
     * Gets roles * @description:
     *
     * @return the roles
     */
    public List<RoleAuthsVo> getRoles() {
        return roles;
    }

    /**
     * Sets roles * @description:
     *
     * @param roles roles
     */
    public void setRoles(List<RoleAuthsVo> roles) {
        this.roles = roles;
    }
}
